<template>
	<view class="container">
		<view class="swiper-detail-box">
			<swiper :indicator-dots="true" :autoplay="true" :interval="3000" :duration="1000">
				<swiper-item>
					<view class="swiper-item">
						<image src="https://img0.baidu.com/it/u=1979533776,2748451465&fm=26&fmt=auto&gp=0.jpg"></image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item">
						<image
							src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fnimg.ws.126.net%2F%3Furl%3Dhttp%253A%252F%252Fdingyue.ws.126.net%252F2021%252F0528%252F74842c1ap00qtsk94007zc000hs00byc.png%26thumbnail%3D650x2147483647%26quality%3D80%26type%3Djpg&refer=http%3A%2F%2Fnimg.ws.126.net&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1628650404&t=80e99e90d4e08968aea7842718f953b3"
							mode=""></image>
					</view>
				</swiper-item>
				<swiper-item>
					<view class="swiper-item">
						<image
							src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2F5b0988e595225.cdn.sohucs.com%2Fimages%2F20171218%2F0b3c01b62e824ba7ac07cff48d9ed52f.jpeg&refer=http%3A%2F%2F5b0988e595225.cdn.sohucs.com&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1628650404&t=19cae5ba3ba194446598194673b12002"
							mode=""></image>
					</view>
				</swiper-item>
			</swiper>
		</view>
		<!-- 详情内容 -->
		<view class="detail-list">
			<view class="text1">
				产地直送
			</view>
			<view class="text2">
				. 品质好物 . 配送全国 . 一件包邮 . 售后无忧
			</view>
			<view class="icon">
				<u-icon name="arrow-right" size="30" color="#E1027B"></u-icon>
			</view>
		</view>
		<!-- 价格 -->
		<view class="price-text">

			<view class="price">
				<text>￥19.9</text>
				<view class=" price-name">
					/箱</view>

			</view>
			<view class="title">
				<text>荷兰纯牛奶250mL*6</text>
			</view>
			<view class="title-text">
				包邮，预计24小时发货
			</view>
		</view>
		<!-- 内容 -->
		<view class="detail-send">
			<view class="contex">
				<text>配送</text>
				<view class="text-border">
					<text>预计1-4天送达，第三方物流，包邮</text>
				</view>

			</view>
			<view class="contex">
				<text>已领</text>
				<view>
					<text>登录后可使用红包</text>
				</view>

			</view>
		</view>
		<!-- 评价 -->
		<view class="detail-access">
			<view class="text3">
				用户评价
				<view class="icon1">
					<text>345</text>
					<u-icon name="arrow-right" size="30"></u-icon>
				</view>

			</view>
		</view>
		<!-- 推荐商品 -->
		<view class="detail-suggest-box">
			<view class="suggest-title">
				推荐商品
			</view>
			<view class="left-body" v-for="(item,i) in 6" :key="i">
				<view class="left-detail">
					<view class="left-image-detail">
						<image src="https://img0.baidu.com/it/u=1979533776,2748451465&fm=26&fmt=auto&gp=0.jpg" mode="">
						</image>
						<text>孜然粉28g*2瓶</text>
						<view class="text5">
							<text>￥19.5</text>
							<u-icon name="plus-circle" size="40" color="#E1027B"></u-icon>
						</view>
					</view>
				</view>
				<view class="right-detail">
					<view class="right-image-detail">
						<image
							src="https://gimg2.baidu.com/image_search/src=http%3A%2F%2Fimg.yzcdn.cn%2Fupload_files%2F2018%2F06%2F05%2FFsYswNBZ1UsVIO1PUtAkbhh0iaj0.png%3FimageView2%2F2%2Fw%2F580%2Fh%2F580%2Fq%2F75%2Fformat%2Fpng&refer=http%3A%2F%2Fimg.yzcdn.cn&app=2002&size=f9999,10000&q=a80&n=0&g=0n&fmt=jpeg?sec=1628602758&t=f10b789bceb4e2d901784ab143b6bcb9"
							mode=""></image>
						<text>孜然粉28g*2瓶</text>
						<view class="text5">
							<text>￥19.5</text>
							<u-icon name="plus-circle" size="40" color="#E1027B"></u-icon>
						</view>
					</view>
				</view>
			</view>
		</view>
		<!-- 底部栏 -->
		<view class="tab-title">
			<view class="cart-icon" @click="hand()">
				<u-icon name="shopping-cart" size="60" color="gray"></u-icon>
			</view>
			<view class="tab-button">
				<view class="button1">
					加入购物车
				</view>
				<view class="button2">
					购买
				</view>
			</view>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {

			}
		},
		methods: {

		}
	}
</script>

<style lang="scss" scoped>
	.container {
		background: #F1F1F1;

		.swiper-item {
			width: 100%;
			height: 100%;
			image {
			width: 100%;
			height: 100%;
			}
		}

		.detail-list {
			background: #FEF0F0;
			height: 60rpx;
			display: flex;

			.text1 {
				font-size: 28rpx;
				margin: 10rpx;
				color: #19BE6B;
				font-weight: 600;
			}

			.text2 {
				font-size: 20rpx;
				color: #E1027B;
				margin: 16rpx 4rpx;
				text-align: center;
			}

			.icon {
				margin-left: 80rpx;
				margin-top: 8rpx;
			}
		}

		.price-text {
			background: #fff;

			.price {
				font-size: 44rpx;
				color: #E1027B;
				padding: 10rpx;
				display: flex;

				.price-name {
					font-size: 24rpx;
					color: gray;
					margin: 20rpx 6rpx;

				}
			}

			.title {
				font-size: 36rpx;
				padding: 10rpx;
			}

			.title-text {

				margin: 10rpx;
				padding: 10rpx;
				font-size: 24rpx;
				color: gray;
			}
		}

		.detail-send {
			background: #fff;

			.contex {
				
				padding: 20rpx;
				font-size: 24rpx;
				color: gray;
				display: flex;
		.text-border {}

				text {
					padding-right: 20rpx;
				}
			}
		}

		.detail-access {
			margin:16rpx 0;
			background: #FFFFFF;

			.text3 {
				padding: 20rpx;
				display: flex;
				text-align: center;
				justify-content: space-between;
				font-size: 28rpx;
			}

			.icon1 {
				font-size: 24rpx;
				color: gray;

				text {
					padding-right: 10rpx;
					text-align: center;
				}
			}
		}

		.detail-suggest-box {
			background: #F1F1F1;
			margin: 20rpx 0;
             .suggest-title{
				 background: #FFF;
			
				 font-size: 28rpx;
				 padding: 20rpx ;
			 }   
			.left-body {
				display: flex;
				justify-content: space-between;
				

				.left-detail {
					height: 400rpx;
					width: 360rpx;
					margin: 20rpx;
					background: #FFF;
					border-radius: 10rpx;
					border-color: #82848A;
				

					.left-image-detail {
						font-size: 24rpx;
						display: flex;
						flex-direction: column;
						margin: 10rpx;
							border-radius: 10rpx;
							text{
								padding:  4rpx 10rpx ;
							}

						.text5 {
							color: #E1027B;
							// margin: 15rpx;
							justify-content: space-between;
							display: flex;
						}

						image {
							height: 300rpx;
							width: 240rpx;
							
						}
					}
				}

				.right-detail {
					height:400rpx;
					width: 360rpx;
					margin: 10px 0;
					margin-right: 20rpx;
					background: #FFF;
					border-radius: 10rpx;
					border-color: #82848A;

					.right-image-detail {
						font-size: 24rpx;
						display: flex;
						flex-direction: column;
						margin: 10rpx;
						text{
							padding:  0 10rpx ;
						}

						.text5 {
							color: #E1027B;
							// margin: 5px;
							justify-content: space-between;
							display: flex;
							padding-left: 10rpx;
							padding: 10rpx;
						}

						image {
							height: 300rpx;
							width: 240rpx;
						}
					}
				}
			}
		}

		.tab-title {
			display: flex;
			position: sticky;
			// position: fixed;
			bottom: 0;
			left: 0;
			width: 100%;
			background: #fff;

			.cart-icon {
				margin: 50rpx;
			}

			.tab-button {
				display: flex;
				width: 100%;
				// flex-direction: row;
				justify-content: flex-end;
				align-items: center;
				margin: 30rpx;
				// justify-content: space-between;

				.button1 {
					background: #FEF0F0;
					font-size: 24rpx;
					color: #E1027B;
					text-align: center;
					height: 30rpx;
					width: 200rpx;
					padding: 20rpx;
					margin: 10rpx 0;
					border-radius: 50rpx 0 0 50rpx;
				}

				.button2 {
					background: #E1027B;
					font-size: 24rpx;
					color: white;
					margin: 10rpx 0;
					text-align: center;
					
					height: 30rpx;
					width: 200rpx;
					padding: 20rpx;
					border-radius: 0 50rpx 50rpx 0;
				}
			}
		}
	}
</style>
